
<h1>Create Customer</h1>
<p align="justify">Please enter the Customer information below.</p>

<div id="infoMessage"><?php echo $message;?></div>

<?php if(isset($flag)){
	 	  echo form_open("people/customer/create_customer/st");
	 }else{
	 		 echo form_open("people/customer/create_customer");

	  }
 ?>

     <table width="60%" align="center" class="table-condensed">  
        <tr> <td><b>  Customer Name: </b></td>
            <td><?php echo form_input($name);?></td>
        </tr>  
     	<tr> <td><b>  Contact Person: </b></td>
            <td><?php echo form_input($contact_person);?></td>
        </tr>  
     	 <tr> 
     	  <td> <b>Tin Number:</b> </td>
    	  <td><?php echo form_input($tin_no);?></td>
     </tr>   
     
      <tr> 
     	  <td> <b>Phone Number:</b> </td>
    	  <td><?php echo form_input($phone);?></td>
     </tr> 
	  <tr> 
     	  <td> <b>Mobile Number:</b> </td>
    	  <td><?php echo form_input($mobile);?></td>
     </tr>   
      <tr> 
     	  <td> <b>Opening Balance:</b> </td>
    	  <td><?php echo form_input($opening_balance);?></td>
	 </tr>   
   	<tr>
	 <td><b>Opening Balance Type</b></td>	
	  <td><label class="checkbox">
		<input type="radio"  name="type" value="Debit" checked="checked">:Debit
		</label>
		<label class="checkbox">
		<input type="radio"   name="type" value="Credit">:Credit
		</label>
	</td>
	</tr>
    
	  <tr> 
     	  <td> <b>Email Address:</b> </td>
    	  <td><?php echo form_input($email);?></td>
     </tr>   
      <tr> 
     	  <td> <b>Address:</b> </td>
    	  <td>  <?php echo form_textarea($address, '', 'style="height : 50px;"');?></td>
     </tr>   
      
        
<tr><td>&nbsp;</td> <td><?php echo form_submit('submit', 'Add Customer', 'class="btn btn-success"');?></td></tr>
</table>
<?php echo form_close();?>
